import 'package:json_annotation/json_annotation.dart';

part 'OutboxMessage.g.dart';

@JsonSerializable()
class OutboxMessage {
  int? id;

  int? inboxMessageId;

  int? conversationId;

  int? sourceUserId;

  int? targetUserId;

  int? chatGroupId;

  int? messageType;

  String? message;

  int? status;

  DateTime? createTime;

  DateTime? sendTime;

  static OutboxMessage fromJson(Map<String, dynamic> json) {
    return _$OutboxMessageFromJson(json);
  }

  @override
  String toString() {
    return 'OutboxMessage{id: $id, inboxMessageId: $inboxMessageId, conversationId: $conversationId, sourceUserId: $sourceUserId, targetUserId: $targetUserId, chatGroupId: $chatGroupId, messageType: $messageType, message: $message, status: $status, createTime: $createTime, sendTime: $sendTime}';
  }
}
